package com.ssy.lingxi.pay.api.common;

import com.ssy.lingxi.common.language.LanguageHolder;

/**
 * 支付渠道
 * @author jw.chen
 * @version 2.0.0
 * @date 2020/11/21
 */
public enum PayChannelEnum {

    Platform(1, "平台支付"),
    APP(2, "APP支付"),
    Applet(3, "小程序支付"),
    JsApi(4,"h5支付");

    private Integer code;

    PayChannelEnum(Integer code, String message) {
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return LanguageHolder.getName(this.getClass(),this.code);
    }
}
